package com.yonyou.gmmc.service.SAInterface.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 车辆信息临时存放表
 * @author baodu
 *
 */
@Table(name="TM_CAR_INFO_TEMP")
public class TmCarInfoTemp {

    /**
     * 微信OpenId
     */
    private String openId;
    
    /*
     * 潜客ID
     */
    private String potentialUserId;
    
    /*
     * 车辆ID
     */
    @Id
	@Column(name = "CAR_ID")
	@GeneratedValue(generator = "JDBC")
    private Long carId;

    /*
     * VIN码
     */
    @Column(name = "VIN")
    private String vin;

   /*
    * 经销商编码
    */
    @Column(name = "DEALER_CODE")
    private String dealerCode;

    /*
     * 车型编码 
     */
    @Column(name = "MODEL_CODE")
    private String modelCode;
    
   
    private String seriesCode;
    
    /*
     * 
     */
    
    private String sfxCode;

    /*
     * 颜色编码
     */
    @Column(name = "COLOR_CODE")
    private String colorCode;
    
    
    private String modelName;
    
    /*
     * 购车日期
     */
    
    private Date saleDate;

    /*
     * 
     */
    private Date usedcarDate;

    /*
     * 发动机号 
     */
    @Column(name = "ENGINE")
    private String engine;

    /*
     * 车牌号
     */
    @Column(name = "REGIST_NO")
    private String registNo;

    /*
     * 
     */
    @Column(name = "INSURER")
    private String insurer;

    /*
     * 投保时间-开始
     */
    @Column(name = "INSURANCE_START_DATE")
    private Date insuranceStartDate;

    /*
     * 投保时间-结束
     */
    @Column(name = "INSURANCE_END_DATE")
    private Date insuranceEndDate;

    /*
     * 车主姓名
     */
    
    private String userName;
    
    
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date reseApplEndTime;
    
    /*
     * 车主电话
     */
    
    private String buyerTel;

    private Date examineDate;
    
    @Column(name = "DRIVER_DATE")
    private Date driverDate;
    
    @Column(name = "VEHICLE_DATE")
    private Date vehicleDate;
    
    private Long maintainSet;

    private String lastInDealer;
    
    @Column(name = "NEXT_MAINTAIN_TIME")
    private Date nextMaintainTime;
    
    @Column(name = "NEXT_MAINTAIN_MILEAGE")
    private Integer nextMaintainMileage;
    
    @Column(name = "DATA_FLAG")
    private String dataFlag;
    
    @Column(name = "CAR_NICKNAME")
    private String carNickname;
    
    @Column(name = "MODEL_CODE_NEW")
    private String modelCodeNew;
    
    
    private String userId;


    @Column(name = "BILL_DATE")
    private Date billDate;
    
    @Column(name = "PROVINCE")
    private Integer province;
    
    @Column(name = "CITY")
    private Integer city;
    
    @Column(name = "ADDRESS")
    private String address;
    
    @Column(name = "ZIP")
    private String zip;
    
    @Column(name = "LINK_MAN")
    private String linkMan;
    
    @Column(name = "SEX")
    private Integer sex;
    
   
    private String tel;
    
    @Column(name = "PHONE")
    private String phone;
    
    @Column(name = "EMAIL")
    private String email;
    
    @Column(name = "OTHER_LINK_WAY")
    private String otherLinkWay;
    
    @Column(name = "CREDENTIALS_TYPE")
    private Integer credentialsType;
    
    @Column(name = "CREDENTIALS_NO")
    private String credentialsNo;
    
    @Column(name = "LICENSE_NO")
    private String licenseNo;
    
    @Column(name = "AFTER_SALES_CODE")
    private String afterSalesCode;
    
    @Column(name = "CONSULTANT_NAME")
    private String consultantName;
    
    private String randomcode;
    
    @Column(name = "PRODUCTION_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date productionDate;
    
    @Column(name = "DELIVERY_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deliveryDate;

    private Integer countNum;
    
    
    
	public Integer getCountNum() {
		return countNum;
	}

	public void setCountNum(Integer countNum) {
		this.countNum = countNum;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getPotentialUserId() {
		return potentialUserId;
	}

	public void setPotentialUserId(String potentialUserId) {
		this.potentialUserId = potentialUserId;
	}

	public Long getCarId() {
		return carId;
	}

	public void setCarId(Long carId) {
		this.carId = carId;
	}

	public String getVin() {
		return vin;
	}

	public void setVin(String vin) {
		this.vin = vin;
	}

	public String getDealerCode() {
		return dealerCode;
	}

	public void setDealerCode(String dealerCode) {
		this.dealerCode = dealerCode;
	}

	public String getModelCode() {
		return modelCode;
	}

	public void setModelCode(String modelCode) {
		this.modelCode = modelCode;
	}

	public String getSeriesCode() {
		return seriesCode;
	}

	public void setSeriesCode(String seriesCode) {
		this.seriesCode = seriesCode;
	}

	public String getSfxCode() {
		return sfxCode;
	}

	public void setSfxCode(String sfxCode) {
		this.sfxCode = sfxCode;
	}

	public String getColorCode() {
		return colorCode;
	}

	public void setColorCode(String colorCode) {
		this.colorCode = colorCode;
	}

	public String getModelName() {
		return modelName;
	}

	public void setModelName(String modelName) {
		this.modelName = modelName;
	}

	public Date getSaleDate() {
		return saleDate;
	}

	public void setSaleDate(Date saleDate) {
		this.saleDate = saleDate;
	}

	public Date getUsedcarDate() {
		return usedcarDate;
	}

	public void setUsedcarDate(Date usedcarDate) {
		this.usedcarDate = usedcarDate;
	}

	public String getEngine() {
		return engine;
	}

	public void setEngine(String engine) {
		this.engine = engine;
	}

	public String getRegistNo() {
		return registNo;
	}

	public void setRegistNo(String registNo) {
		this.registNo = registNo;
	}

	public String getInsurer() {
		return insurer;
	}

	public void setInsurer(String insurer) {
		this.insurer = insurer;
	}

	public Date getInsuranceStartDate() {
		return insuranceStartDate;
	}

	public void setInsuranceStartDate(Date insuranceStartDate) {
		this.insuranceStartDate = insuranceStartDate;
	}

	public Date getInsuranceEndDate() {
		return insuranceEndDate;
	}

	public void setInsuranceEndDate(Date insuranceEndDate) {
		this.insuranceEndDate = insuranceEndDate;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getReseApplEndTime() {
		return reseApplEndTime;
	}

	public void setReseApplEndTime(Date reseApplEndTime) {
		this.reseApplEndTime = reseApplEndTime;
	}

	public String getBuyerTel() {
		return buyerTel;
	}

	public void setBuyerTel(String buyerTel) {
		this.buyerTel = buyerTel;
	}

	public Date getExamineDate() {
		return examineDate;
	}

	public void setExamineDate(Date examineDate) {
		this.examineDate = examineDate;
	}

	public Date getDriverDate() {
		return driverDate;
	}

	public void setDriverDate(Date driverDate) {
		this.driverDate = driverDate;
	}

	public Date getVehicleDate() {
		return vehicleDate;
	}

	public void setVehicleDate(Date vehicleDate) {
		this.vehicleDate = vehicleDate;
	}

	public Long getMaintainSet() {
		return maintainSet;
	}

	public void setMaintainSet(Long maintainSet) {
		this.maintainSet = maintainSet;
	}

	public String getLastInDealer() {
		return lastInDealer;
	}

	public void setLastInDealer(String lastInDealer) {
		this.lastInDealer = lastInDealer;
	}

	public Date getNextMaintainTime() {
		return nextMaintainTime;
	}

	public void setNextMaintainTime(Date nextMaintainTime) {
		this.nextMaintainTime = nextMaintainTime;
	}

	public Integer getNextMaintainMileage() {
		return nextMaintainMileage;
	}

	public void setNextMaintainMileage(Integer nextMaintainMileage) {
		this.nextMaintainMileage = nextMaintainMileage;
	}

	public String getDataFlag() {
		return dataFlag;
	}

	public void setDataFlag(String dataFlag) {
		this.dataFlag = dataFlag;
	}

	public String getCarNickname() {
		return carNickname;
	}

	public void setCarNickname(String carNickname) {
		this.carNickname = carNickname;
	}

	public String getModelCodeNew() {
		return modelCodeNew;
	}

	public void setModelCodeNew(String modelCodeNew) {
		this.modelCodeNew = modelCodeNew;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Date getBillDate() {
		return billDate;
	}

	public void setBillDate(Date billDate) {
		this.billDate = billDate;
	}

	public Integer getProvince() {
		return province;
	}

	public void setProvince(Integer province) {
		this.province = province;
	}

	public Integer getCity() {
		return city;
	}

	public void setCity(Integer city) {
		this.city = city;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getZip() {
		return zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	public String getLinkMan() {
		return linkMan;
	}

	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getOtherLinkWay() {
		return otherLinkWay;
	}

	public void setOtherLinkWay(String otherLinkWay) {
		this.otherLinkWay = otherLinkWay;
	}

	public Integer getCredentialsType() {
		return credentialsType;
	}

	public void setCredentialsType(Integer credentialsType) {
		this.credentialsType = credentialsType;
	}

	public String getCredentialsNo() {
		return credentialsNo;
	}

	public void setCredentialsNo(String credentialsNo) {
		this.credentialsNo = credentialsNo;
	}

	public String getLicenseNo() {
		return licenseNo;
	}

	public void setLicenseNo(String licenseNo) {
		this.licenseNo = licenseNo;
	}

	public String getAfterSalesCode() {
		return afterSalesCode;
	}

	public void setAfterSalesCode(String afterSalesCode) {
		this.afterSalesCode = afterSalesCode;
	}

	public String getConsultantName() {
		return consultantName;
	}

	public void setConsultantName(String consultantName) {
		this.consultantName = consultantName;
	}

	public String getRandomcode() {
		return randomcode;
	}

	public void setRandomcode(String randomcode) {
		this.randomcode = randomcode;
	}

	public Date getProductionDate() {
		return productionDate;
	}

	public void setProductionDate(Date productionDate) {
		this.productionDate = productionDate;
	}

	public Date getDeliveryDate() {
		return deliveryDate;
	}

	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}
    
    
    
}